<?php

namespace app\common\order\model;

use app\common\config\logic\CommonPickerLogic;
use app\common\system\logic\UserLogic;
use think\Model;
use think\model\concern\SoftDelete;

class OrderVip extends Model
{
    use SoftDelete;
    protected $defaultSoftDelete = 0;

    protected $type = [
        'event_date' => 'timestamp',
    ];


    // 预产期 event_date 
    public function getEventDateAttr($value)
    {
        return empty($value) ? '' : date('Y-m-d', $value);
    }
}
